package com.example.patient.dto.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author wxy
 * @Date 2021/1/19 20:12
 * @Version 1.0
 */
@Data
@ApiModel(value = "就诊信息返回体")
public class VisitInfoResp implements Serializable {
    private static final long serialVersionUID = 5340840920971067616L;

    @ApiModelProperty(value = "docInfo")
    @JSONField(name = "docInfo")
    private DocInfoResp docInfo;
    @ApiModelProperty(value = "patient")
    @JSONField(name = "patient")
    private PatientResp patient;

    @Data
    public static class DocInfoResp implements Serializable {
        private static final long serialVersionUID = -5637522065261071587L;

        @ApiModelProperty(value = "name")
        @JSONField(name = "Name")
        private String name;
        @ApiModelProperty(value = "head")
        @JSONField(name = "Head")
        private String head;
        @ApiModelProperty(value = "title")
        @JSONField(name = "Title")
        private String title;
        @ApiModelProperty(value = "dName")
        @JSONField(name = "dName")
        private String dName;
        @ApiModelProperty(value = "aName")
        @JSONField(name = "aName")
        private String aName;
        @ApiModelProperty(value = "price")
        @JSONField(name = "Price")
        private BigDecimal price;
        @ApiModelProperty(value = "protocol")
        @JSONField(name = "protocol")
        private String protocol;
    }

    @Data
    public static class PatientResp implements Serializable {
        private static final long serialVersionUID = -6345479648611600801L;

        @ApiModelProperty(value = "pid")
        @JSONField(name = "PID")
        private Long pid;
        @ApiModelProperty(value = "name")
        @JSONField(name = "Name")
        private String name;
        @ApiModelProperty(value = "allergy")
        @JSONField(name = "Allergy")
        private String allergy;
        @ApiModelProperty(value = "pastDisease")
        @JSONField(name = "PastDisease")
        private String pastDisease;
        @ApiModelProperty(value = "sex")
        @JSONField(name = "sex")
        private String sex;
    }
}
